import request from '@/utils/request'

// 查询神椰行业列表
export function industryList(query) {
  return request({
    url: '/shenye/industry/list',
    method: 'get',
    params: query
  })
}
// 新增神椰行业
export function addIndustry(data) {
  return request({
    url: '/shenye/industry',
    method: 'post',
    data
  })
}
// 查询神椰行业详情
export function industryDetail(id) {
  return request({
    url: '/shenye/industry/detail/' + id,
    method: 'get',
  })
}
// 编辑神椰行业
export function updateIndustry(data) {
  return request({
    url: '/shenye/industry',
    method: 'put',
    data: data
  })
}
//封顶激励规则选择列表
export function incentiveselectList(query) {
  return request({
    url: '/shenye/industry/incentive/rule/select/list',
    method: 'get',
    params: query
  })
}